<div class="form">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'admin-form',
        'enableAjaxValidation' => true,
            ));
    ?>
    <?php echo $form->errorSummary($model); ?>
    <table cellspacing="0" cellpadding="0" class="Ftable">
        <tbody>
            <tr>
                <th width="15%"><?php echo $form->labelEx($model, 'username'); ?></th>
                <td>
                    <div class="label"><?php echo $form->textField($model, 'username', array('size' => 32, 'maxlength' => 32)); ?></div>
                    <?php echo $form->error($model, 'username'); ?>
                </td>
            </tr>
            <tr>
                <th><?php echo $form->labelEx($model, 'password'); ?></th>
                <td>
                    <div class="label"><?php echo $form->passwordField($model, 'password', array('size' => 32, 'maxlength' => 32)); ?></div>
                    <?php echo $form->error($model, 'password'); ?>
                </td>
            </tr>
            <tr>
                <th><?php echo $form->labelEx($model, 'confirmPassword'); ?></th>
                <td>
                    <div class="label"><?php echo $form->passwordField($model, 'confirmPassword', array('size' => 32, 'maxlength' => 32)); ?></div>
                    <?php echo $form->error($model, 'confirmPassword'); ?>
                </td>
            </tr>
            <tr>
                <th></th>
                <td><?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?></td>
            </tr>
    </table>
    <?php $this->endWidget(); ?>
</div>